import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import order from '@/components/order'
import login from '@/components/login'
import comment from '@/components/comment'

Vue.use(Router)

var routes = [
  {
    path:'/comment',
    name:'comment',
    component:comment
  },
  {
    path:'/login',
    name:'login',
    component:login
  },
  {
    path:'/order',
    name:'order',
    component:order
  },
        {
          path:'/',
          name:'index',
          component:index
        }
        
]

export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})
